<!doctype html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- CSRF Token -->
    <meta name="csrf-token" content="{{ csrf_token() }}">

    <title>{{ config('app.name', 'Laravel') }}</title>
    <!-- Bootstrap -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" rel="stylesheet">
    <link crossorigin="anonymous" integrity="sha384-VK/ia2DWrvtO05YDcbWI8WE3WciOH0RhfPNuRJGSa3dpAs5szXWQuCnPNv/yzpO4" href="https://lib.baomitu.com/jqueryui/1.12.1/jquery-ui.min.css" rel="stylesheet">
    <link href="/static/home/css/index.css" rel="stylesheet">
    <link href="/static/font-awesome/css/font-awesome.min.css" rel="stylesheet">
    <!-- HTML5 shim 和 Respond.js 是为了让 IE8 支持 HTML5 元素和媒体查询（media queries）功能 -->
    <!-- 警告：通过 file:// 协议（就是直接将 html 页面拖拽到浏览器中）访问页面时 Respond.js 不起作用 -->
    <!--[if lt IE 9]>
    <script src="https://cdn.jsdelivr.net/npm/html5shiv@3.7.3/dist/html5shiv.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/respond.js@1.4.2/dest/respond.min.js"></script>
    <![endif]-->

</head>
<body>

<div class="col-sm-2  sidebar">
    <ul class="nav nav-sidebar">
        <li class="logo">
            <a href="/"><h1>58tbook</h1></a>
            <p>你想要的都在这里！</p>
        </li>
        <li>
            <div class="hr-line">
                <hr class="line">
                <span>玩一玩</span>
                <hr class="line">
            </div>
        </li>
    </ul>
    <ul class="nav nav-sidebar">
        <li><a href="">搜一搜</a></li>
        <li><a href="">看一看</a></li>
        <li>
            <div class="hr-line">
                <hr class="line">
                <span>导航网站</span>
                <hr class="line">
            </div>
        </li>
    </ul>
    <ul class="nav nav-sidebar">
        <li><a href="">好站推荐</a></li>
        <li><a href="">广告人</a></li>
        <li><a href="">设计师</a></li>
        <li><a href="">程序猿</a></li>
        <li><a href="">学生党</a></li>
        <li>
            <div class="hr-line">
                <hr class="line">
                <span>个人中心</span>
                <hr class="line">
            </div>
        </li>
    </ul>
    <ul class="nav nav-sidebar">
        <li><a href="">我的消息</a></li>
        <li><a href="">我的收藏</a></li>
        <li><a href="javascript:void(0);" onclick="showModel('loginModel')">登录/注册</a></li>
    </ul>
</div>
<div class="col-sm-10  main">
    @yield('content')
</div>

<!-- loginModel -->
<div class="modal fade" id="loginModel" tabindex="-1" role="dialog" aria-labelledby="loginModel">
    <div class="modal-dialog" role="document">
            <div class="modal-body login">
                <form action="/login" method="post">
                    <h2>登陆</h2>
                    <div class="form-group">
                        <label for="exampleInputEmail">用户名</label>
                        <input type="user_name" class="form-control" name="user_name" placeholder="请输入用户名">
                        <div
                            class="text-neg text-small user_name-error-msg">{{isset($errMsg['user_name'])?$errMsg['user_name']:""}}</div>
                    </div>
                    <div class="form-group">
                        <label for="exampleInputPassword1">密码</label>
                        <div class="input-group">
                            <input type="password" name="password" class="form-control" placeholder="请输入密码">
                            <div class="input-group-addon look-pwd"><span class="glyphicon glyphicon-eye-close"></span>
                            </div>
                        </div>
                        <div
                            class="text-neg text-small password-error-msg">{{isset($errMsg['password'])?$errMsg['password']:""}}</div>
                    </div>
                    <div class="grid half collapse-xs gap-xl v-center mt-m">
                        <div class="text-small">
                            <a href="javascript:void(0);" onclick="showModel('forgetPasswordModel')">忘记密码?</a>
                        </div>
                        <div class="from-group text-right">
                            <input type="hidden" name="_token" value="{{ csrf_token() }}">
                            <button class="button">登陆账号</button>
                        </div>
                        <hr class="my-l">
                        <div class="text-small" style="text-align: center;margin-top: 40px;">
                            <a href="javascript:void(0);" onclick="showModel('registerModel')">还没有账号，前往注册?</a>
                        </div>
                    </div>
                </form>
            </div>
    </div>
</div>
<!-- registerModel -->
<div class="modal fade" id="registerModel" tabindex="-2" role="dialog" aria-labelledby="registerModel">
    <div class="modal-dialog" role="document">
            <div class="modal-body login">
                <form action="/register" method="post">
                    <h2>注册</h2>
                    <div class="form-group">
                        <label for="exampleInputEmail">用户名</label>
                        <input type="user_name" class="form-control" name="user_name" placeholder="请输入用户名">
                        <div
                            class="text-neg text-small user_name-error-msg">{{isset($errMsg['user_name'])?$errMsg['user_name']:""}}</div>
                    </div>
                    <div class="form-group">
                        <label for="exampleInputEmail">Email</label>
                        <input type="email" id="autocomplete" name="email" class="form-control"
                               placeholder="请输入正确的邮箱地址">
                        <div
                            class="text-neg text-small email-error-msg">{{isset($errMsg['email'])?$errMsg['email']:""}}</div>
                    </div>
                    <div class="form-group">
                        <label for="exampleInputPassword1">验证码</label>
                        <div class="input-group">
                            <input type="text" class="form-control" name="code" placeholder="请输入验证码">
                            <div class="input-group-addon code-button" onclick="sendEmailCode(this)">发送验证码</div>
                        </div>
                        <div
                            class="text-neg text-small code-error-msg">{{isset($errMsg['code'])?$errMsg['code']:""}}</div>
                    </div>
                    <div class="form-group">
                        <label for="exampleInputPassword1">密码</label>
                        <div class="input-group">
                            <input type="password" name="password" class="form-control" placeholder="请输入密码">
                            <div class="input-group-addon look-pwd"><span class="glyphicon glyphicon-eye-close"></span>
                            </div>
                        </div>
                        <div
                            class="text-neg text-small password-error-msg">{{isset($errMsg['password'])?$errMsg['password']:""}}</div>
                    </div>
                    <div class="grid half collapse-xs gap-xl v-center mt-m">
                        <div class="text-small">
                            <a  href="javascript:void(0);" onclick="showModel('loginModel')">已经注册过账户了?</a>
                        </div>
                        <div class="from-group text-right">
                            <input type="hidden" name="_token" value="{{ csrf_token() }}">
                            <button class="button">创建账户</button>
                        </div>
                    </div>
                </form>
            </div>
    </div>
</div>
<!-- forgetPasswordModel -->
<div class="modal fade" id="forgetPasswordModel" tabindex="-3" role="dialog" aria-labelledby="forgetPasswordModel">
    <div class="modal-dialog" role="document">
            <div class="modal-body login">
                <form action="/forgetPassword" method="post">
                    <h2>忘记密码</h2>
                    <div class="form-group">
                        <label for="exampleInputEmail">Email</label>
                        <input type="email" id="autocomplete" name="email" class="form-control"
                               placeholder="请输入正确的邮箱地址">
                        <div
                            class="text-neg text-small email-error-msg">{{isset($errMsg['email'])?$errMsg['email']:""}}</div>
                    </div>
                    <div class="form-group">
                        <label for="exampleInputPassword1">验证码</label>
                        <div class="input-group">
                            <input type="text" class="form-control" name="code" placeholder="请输入验证码">
                            <div class="input-group-addon code-button" onclick="sendEmailCode(this)">发送验证码</div>
                        </div>
                        <div
                            class="text-neg text-small code-error-msg">{{isset($errMsg['code'])?$errMsg['code']:""}}</div>
                    </div>
                    <div class="form-group">
                        <label for="exampleInputPassword1">密码</label>
                        <div class="input-group">
                            <input type="password" name="password" class="form-control" placeholder="请输入密码">
                            <div class="input-group-addon look-pwd"><span class="glyphicon glyphicon-eye-close"></span>
                            </div>
                        </div>
                        <div
                            class="text-neg text-small password-error-msg">{{isset($errMsg['password'])?$errMsg['password']:""}}</div>
                    </div>
                    <div class="grid half collapse-xs gap-xl v-center mt-m">
                        <div class="text-small">
                            <a  href="javascript:void(0);" onclick="showModel('loginModel')">记起密码 ? </a>
                        </div>
                        <div class="from-group text-right">
                            <input type="hidden" name="_token" value="{{ csrf_token() }}">
                            <button class="button">重置密码</button>
                        </div>
                    </div>
                </form>
            </div>
    </div>
</div>

<!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
<script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"></script>
<!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>
<script crossorigin="anonymous" integrity="sha384-Ysr53n0PIGi7rAduJ+BAMGbxA9RFQwIQfPh2bD9pf1x3vrnDsdX4SlwCNpxmrPIi"
        src="https://lib.baomitu.com/layer/3.1.1/layer.js"></script>
<script crossorigin="anonymous" integrity="sha384-PtTRqvDhycIBU6x1wwIqnbDo8adeWIWP3AHmnrvccafo35E7oIvW7HPXn2YimvWu"
        src="https://lib.baomitu.com/jqueryui/1.12.1/jquery-ui.min.js"></script>
<script src="/static/home/js/common.js"></script>
<script>



</script>
</body>
</html>
